package com.itheima.web.service.impl.pms;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.service.pms.PmsSkuStockService;
import com.itheima.vo.pms.PmsSkuStock;
import com.itheima.web.mapper.pms.PmsSkuStockMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class PmsSkuStockServiceImpl extends ServiceImpl<PmsSkuStockMapper, PmsSkuStock> implements PmsSkuStockService{

    @Autowired
    private PmsSkuStockMapper pmsSkuStockMapper;

    @Override
    public List<PmsSkuStock> getByProductId(Integer id) {
        return pmsSkuStockMapper.getByProductId(id);
    }
}
